﻿@model L2C.Models.Administrator.PageContentModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="/Content/script/tinymce/jscripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
<script src="/Content/script/tinymce/jscripts/tiny_mce/tiny_mce_config.js" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>StaticContent</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MainContent)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.MainContent, new { @Class = "tinymce richtextcontent" })
            @Html.ValidationMessageFor(model => model.MainContent)
        </div>      

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
